﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaskBasedSchedule.Core
{
    public class Authority
    {
        public int Id { get; internal set; }

        public string Title { get; internal set; }

        public Authority Parent { get; internal set; }

        public string Key { get; internal set; }

        public AuthorityList Children { get; internal set; }

        internal Authority(int id, string key, string title, Authority parent)
        {
            Id = id;
            Key = key;
            Title = title;
            Parent = parent;
            Children = new AuthorityList();
        } 
    }
}